package com.zhu.rpc;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@ConfigurationProperties("orpc.server")
public class RpcConf {
    Map<String,String> host;
    Map<String,Integer> port;

    public Map<String, String> getHost() {
        return host;
    }

    public void setHost(Map<String, String> host) {
        this.host = host;
    }

    public Map<String, Integer> getPort() {
        return port;
    }

    public void setPort(Map<String, Integer> port) {
        this.port = port;
    }
}
